Class: com.microstrategy.web.app.taglibs.IfFeatureTag
Usage:
This custom tag enables to compare the values of different features coming from different sources (specified by the type attribute). For example:<web:ifFeature name="accessibility"> <web:then> This text will be displayed if the "accessibility" feature is enabled for this user </web:then> </web:ifFeature> <web:ifFeature type="systemPreference" name="loginFirst"> <web:then> This text will be displayed if the system administrator preference has "loginFirst" enabled </web:then> </web:ifFeature>
Name | Required? | Description |
enum | false | Indicates if the information specified on the value tag is a constant definition on a class or enumeration. Usage: If the property assigned to the value attribute is the package, class and constant name so the comparison should be performed with the value of this constant, instead of using the string as such, then this attribute value should be set to True. If it doesn't matter or does not need to be used, it can be ommited. This property is currently used when the type attribute is specified to get the feature value from RequestKeys . |
name | true | Indicates the name of the feature to analyze, given the information specified on the other tag attributes. Usage: The feature to look for specified on this attribute has to be a valid one on the environment specified with the type attribute, otherwise it will return False by default. |
type | false | Indicates the type of feature that will be analyzed. Usage: The list of valid values for this attribute include: RequestKeys instance available
BrowserSettings instance available
Preferences instance available for System Preferences
Preferences instance available for User Preferences
WebFeatures . |
value | false | Indicates the value that will be compared against the information found on the feature. Usage: If the feature to ask for returns a True /False result, then no
value is required to specify for the tag. |